package com.common.www.bean.vo;

import com.common.www.MyApplicationListener;
import org.springframework.boot.base.jpa.domain.entity.NumberIdentityEntity;
import com.common.www.bean.entity.project.Project;

import javax.validation.constraints.NotNull;

import lombok.Data;

@Data
public class AnalyseVo extends NumberIdentityEntity {
    /**
     * 型材类型
     */
    @NotNull(message = "型材类型不能为空")
    private Integer xingCaiLeiXing;
    /**
     * 型材系列
     */
    @NotNull(message = "型材系列不能为空")
    private Integer xingCaiXiLie;
    /**
     * 门窗类型
     */
    @NotNull(message = "门窗类型不能为空")
    private Integer menChuangLeiXing;
    /**
     * 门窗样式 文件相对地址
     */
    @NotNull(message = "门窗样式不能为空")
    private String menChuangYangShi;

    /**
     * 项目
     */
    @NotNull(message = "项目不能为空")
    private Project project;

    private String menChuangYangShiPathUrl;

    public String getMenChuangYangShiPathUrl() {
        return MyApplicationListener.publicProjectPath + menChuangYangShi;
    }
}
